<?php
require_once "request.class.php";


//print_r($d);

$mail=[
    "Subject" => "测了个试",
    "Body" => "<h1>测试</h1>",
    "addAddress" => "czrll1@163.com",
    "addAttachment"=>'miku.jpg;gundam.jpg'

];
$cc=0;

function sendMail($mail){
    global $cc;
    $cc++;
    include_once "myMail.class.php";
    $m=new myMail($mail);
    $m->mail->Subject.=(date("H:i:s")."==>$cc");
    $m->Start();
    $m=null;
}

//$startTime="2017-8-1 13:17:00";
$startTime=date("Y-m-d H:i:s");

$s = new request($startTime,"sendMail",$mail ,24*3600);
$s->start();
$count;

